package com.duruikang.LeaveAPI.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.duruikang.LeaveAPI.entity.Token;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @author Drik
 * @date 2021-12-20 17:11
 */

public interface TokenDao extends BaseMapper<Token> {
    @Insert("INSERT INTO token SET token.token = #{token};")
    public int insertToken(@Param("token") String token);
    @Delete("DELETE FROM token WHERE token.token = #{token};")
    public int deleteToken(@Param("token")String token);
}
